package com.ruoyi.house.mapper.dao;

import com.ruoyi.house.domain.HouseImageEntity;
import com.ruoyi.house.domain.HouseInfoEntity;
import com.ruoyi.house.dto.request.RequestHouseInfoDto;
import com.ruoyi.house.dto.response.ResponseHouseInfoDto;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author hanbing
 * @email hanbing@wish.com
 * @date 2018-02-24 15:38:14
 */
@Mapper
public interface HouseInfoDao extends BaseDao<HouseInfoEntity> {
	
	public List<String> queryPic(String houseId);
	
	public void savePic(HouseImageEntity image);
	
	public void deletePic(String id);

	public HouseInfoEntity getHouseInfoByHouseId(String houseId);

	public List<String> getHousePicByHouseId(String houseId);

	public HouseInfoEntity findById(Map<String, Object> param);
	
	/**
	 * 
	* @Description: 选择（收房合同）房产列表  
	* @param @param pagination
	* @param @param requestHouseInfoDto
	* @param @return 参数  
	* @return 返回值说明
	 */
	List<ResponseHouseInfoDto> searchHouseinfoList(Pagination pagination, RequestHouseInfoDto requestHouseInfoDto);

	public int findHouseCount(String format3, String format2, int type, Integer businessId); 
}
